<template>
  <div class="differentPlan-item">
    <h3 class="text-purple-1300 text-22 leading-7 font-semibold break-words w-full">
      {{$websiteName(toolData)}}
    </h3>
    <div class="mt-7 space-y-4"
      v-if="website && hasRealVal(website.pricing) && website.pricing.length > 0">
      <div class="max-w-sm mx-auto border border-gray-2000 rounded py-3 px-5"
        v-for="(item,key) in website.pricing"
        :key="key">
        <div class="text-xl text-gray-1000 break-words font-semibold">{{item.name}}</div>
        <p class="text-base text-gray-1000 break-words mt-2"
          v-if="item.price">{{item.price}}</p>
        <p class="text-base text-gray-1000 break-words mt-2"
          v-if="item.description">{{item.description}}</p>
      </div>
    </div>
    <el-empty v-else
      :description="$t('vs_noData')"></el-empty>
  </div>
</template>

<script>
import { mapState } from 'vuex'
export default {
  name: 'CompareVsDifferentPlanBetween',
  props: {
    toolData: {
      type: Object | null,
      default() {
        return {}
      },
    },
    website: {
      type: Object | null,
      default() {
        return {}
      },
    },
  },
  computed: {
    ...mapState({
      locale: (state) => state.locale,
    }),
  },
}
</script>
